import {ActionType} from "./mutation-types";

export default {
    [ActionType.SELECTEDSYMPTOM](state, n) {
      state.selectedSymptom=n;
    },
    [ActionType.INQUIRYDATALIST](state, n) {
      state.inquiryDataList=n;
    },
    [ActionType.DIAGNOSISGOBAL](state, n) {
      state.diagnosisGlobal=n;
    },
    [ActionType.SCROLLVIEWNUMGLOBAL](state, n) {
      state.scrollViewNumGlobal+=1;
    },
    [ActionType.PAGELISTGLOBAL](state, n) {
        state.pageListGlobal=n;
    },    
    [ActionType.ANSWERGLOBAL](state, n) {
        state.answerGlobal=n;
    },
    [ActionType.ANSWERKEYGLOBAL](state, n) {
        state.answerKeyGlobal=n;
    },
    [ActionType.FROMRESULTPAGEFLAG](state, n) {
        state.fromResultPageFlag=n;
    }, 
    [ActionType.FROMRECORDSPAGEFLAG](state, n) {
        state.fromRecordsPageFlag=n;
    },
    [ActionType.DISTINGUISHGLOBAL](state, n) {
        state.DistinguishGlobal=n;
    },
    [ActionType.CONTINUEFLAG](state, n) {
        state.continueFlag=n;
    },
    [ActionType.OTHERSYMPTOMSTEXTGLOBAL](state, n) {
        state.otherSymptomsTextGlobal=n;
    },
    [ActionType.OTHERSYMPTOMSLISTGLOBAL](state, n) {
        state.otherSymptomsListGlobal=n;
    },
    [ActionType.SNGLOBAL](state, n) {
        state.snGlobal=n;
    },    
    [ActionType.FROMUSERPAGEFLAG](state, n) {
        state.fromUserPageFlag=n;
    },
    [ActionType.FINISHINQFLAGGLOBAL](state, n) {
        state.finishInqFlagGlobal=n;
    },
    [ActionType.SCROLLTOPGLOBAL](state, n) {
        state.scrollTopGlobal=n;
    },
}
